package com.apabi.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created by huhu on 2018/1/18.
 */
public interface CitedMapper {

    @Select("select src_docid from ref where ref_docId = #{refDocId} order by ref_docId offset (#{page}-1)*#{pageSize} row fetch next #{pageSize} row only ")
    List<String> getSrcDocId(@Param("refDocId")String refDocId, @Param("page")Integer page, @Param("pageSize")Integer pageSize);
}
